﻿@model KRM.Core.tblKRWProductFAQ
<input type="hidden" name="ProductFaqID" value="@Model.ProductFaqID">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h5 id="myModalLabel">@(Model.ProductFaqID==0 ?"Add New FAQ":"Edit FAQ")</h5>
        </div>
<div class="modal-body">
    <div class="msg-frEditFAQs">
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="row-fluid">
                <div class="span4">Supplier</div>
                <div class="span8">
                    @Html.DropDownList("CompanyID",null,new {@class="input-block-level" , onchange="SelectedSupplierFAQChanged(this.value)"})
                </div>
            </div>
            <div class="row-fluid">
                <div class="span4">Store</div>
                <div class="span8">
                    @Html.DropDownList("SiteID",null,new {@class="input-block-level",onchange="SelectedStoreFAQChanged(this.value)"})
                </div>

            </div>
            <div class="row-fluid">
                <div class="span4">Product</div>
                <div class="span8">
                    @Html.DropDownList("ProductID",null,new {@class="input-block-level",onchange="SelectedProductFAQChanged(this.value)"})
                </div>
            </div>
        </div>
        <div class="span6">
            <div class="row-fluid">
                <div class="span6">
                    <div >
                        <input style="float: left;"type="checkbox"  id="c1" data-skin="minimal" name="display"  @(Model.display==true?"checked=checked":"") value="1">
                        <label class='inline' for="c1">Display On Site</label>
                    </div>
                </div>
                <div class="span6">
                    <div >
                        <input style="float: left;"type="checkbox" id="c3" data-skin="minimal"name="siteOnly" @(Model.siteOnly==true?"checked=checked":"") value="1">
                        <label class='inline' for="c3">Store Related</label>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span6">
                    <div >
                        <input style="float: left;"type="checkbox" id="c4" data-skin="minimal" name="popularAnswer"@(Model.popularAnswer>0?"checked=checked":"") value="1"> 
                        <label class='inline' for="c4">Mark As Popular Answer</label>
                    </div>
                </div>
                <div class="span6">
                    <div>
                        <input style="float: left;"type="checkbox" id="c2" data-skin="minimal" name="companyOnly" @(Model.companyOnly==true?"checked=checked":"") value="1"> 
                        <label class='inline' for="c2">Supplier Releated</label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span6">Question
            <textarea name="Question" id="Question" class="input-block-level" rows="5">@Model.Question</textarea>
        </div>
        <div class="span6">Answer
            <textarea name="Answer" id="Answer" class="input-block-level" rows="5">@Model.Answer</textarea>
        </div>
    </div>
</div>
            <div class="modal-footer">
                <button class="btn btn-primary" id="btnSaveEditFAQ" type="submit" >Save</button>
                <a class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
            </div>

